load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "lockspanset",
    srcs = ["lockspanset.go"],
    importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/lockspanset",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/kv/kvserver/concurrency/lock",
        "//pkg/roachpb",
        "@com_github_cockroachdb_errors//:errors",
    ],
)

go_test(
    name = "lockspanset_test",
    srcs = ["lockspanset_test.go"],
    embed = [":lockspanset"],
    deps = [
        "//pkg/kv/kvserver/concurrency/lock",
        "//pkg/roachpb",
        "//pkg/util/leaktest",
        "//pkg/util/log",
        "@com_github_stretchr_testify//require",
    ],
)
